package com.pcbly.web.action.mail;

import com.pcbly.web.action.BaseAction;
import com.pcbly.web.bean.mail.UserReceiveMainBean;
import com.pcbly.web.business.mail.UserReceiveMailService;
import com.pcbly.web.business.mail.UserReceiveMainService;

public class UserReceiveAction extends BaseAction<UserReceiveMainBean> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3283365422723104522L;
	protected UserReceiveMainService userReceiveMainService;

	protected UserReceiveMailService userReceiveMailService;

	public void setUserReceiveMainService(
			UserReceiveMainService userReceiveMainService) {
		this.userReceiveMainService = userReceiveMainService;
	}

	public void setUserReceiveMailService(
			UserReceiveMailService userReceiveMailService) {
		
		this.userReceiveMailService = userReceiveMailService;
	}
	
	public String dwrDelete(String id)throws Exception{
		userReceiveMainService.removeUserReceiveMainBeanById(id);
		return super.dwrBaseDelete(id);
	}
	public String dwrComplateDeletes(String id)throws Exception{
		userReceiveMainService.removeComplateUserReceiveMainBeanById(id);
		return super.dwrBaseDelete(id);
	}
}
